<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Class template any&lt;Concept, T &amp;&amp;&gt;</title>
<link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../boost_typeerasure/reference.html#doxygen.any_8hpp" title="Header &lt;boost/type_erasure/any.hpp&gt;">
<link rel="prev" href="classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_01_4.html" title="Class template any&lt;Concept, T &amp;&gt;">
<link rel="next" href="any__cast_8hpp_1af5fce4e0a865de41e533821e363e548f.html" title="Function any_cast">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../boost.png"></td>
<td align="center"><a href="../../../index.html">Home</a></td>
<td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_01_4.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../boost_typeerasure/reference.html#doxygen.any_8hpp"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="any__cast_8hpp_1af5fce4e0a865de41e533821e363e548f.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="doxygen.classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Class template any&lt;Concept, T &amp;&amp;&gt;</span></h2>
<p>boost::type_erasure::any&lt;Concept, T &amp;&amp;&gt;</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../boost_typeerasure/reference.html#doxygen.any_8hpp" title="Header &lt;boost/type_erasure/any.hpp&gt;">boost/type_erasure/any.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Concept<span class="special">,</span> <span class="keyword">typename</span> T<span class="special">&gt;</span> 
<span class="keyword">class</span> <a class="link" href="classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4.html" title="Class template any&lt;Concept, T &amp;&amp;&gt;">any</a><span class="special">&lt;</span><span class="identifier">Concept</span><span class="special">,</span> <span class="identifier">T</span> <span class="special">&amp;&amp;</span><span class="special">&gt;</span> <span class="special">{</span>
<span class="keyword">public</span><span class="special">:</span>

  <span class="comment">// <a class="link" href="classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4.html#id-1_3_39_13_1_1_1_4_3-bb">public member functions</a></span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> U<span class="special">&gt;</span> <a class="link" href="classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4.html#doxygen.classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4_1a412e871a14c040392805257e3808f26d"><span class="identifier">any</span></a><span class="special">(</span><span class="identifier">U</span> <span class="special">&amp;&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> U<span class="special">,</span> <span class="keyword">typename</span> Map<span class="special">&gt;</span> <a class="link" href="classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4.html#doxygen.classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4_1a346cf8190842e22205df5aca3e4f87d7"><span class="identifier">any</span></a><span class="special">(</span><span class="identifier">U</span> <span class="special">&amp;&amp;</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="structboost_1_1type__erasure_1_1static__binding.html" title="Struct template static_binding">static_binding</a><span class="special">&lt;</span> <span class="identifier">Map</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4.html#doxygen.classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4_1a5af1c993431435d6ef03f45db9c35684"><span class="identifier">any</span></a><span class="special">(</span><a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a><span class="special">&lt;</span> <span class="identifier">Concept</span><span class="special">,</span> <span class="identifier">T</span> <span class="special">&gt;</span> <span class="special">&amp;&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Concept2<span class="special">,</span> <span class="keyword">typename</span> Tag2<span class="special">&gt;</span> <a class="link" href="classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4.html#doxygen.classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4_1a5e1192589edf88b31a04a9662a2dfee5"><span class="identifier">any</span></a><span class="special">(</span><a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a><span class="special">&lt;</span> <span class="identifier">Concept2</span><span class="special">,</span> <span class="identifier">Tag2</span> <span class="special">&amp;&amp;</span> <span class="special">&gt;</span> <span class="special">&amp;&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Concept2<span class="special">,</span> <span class="keyword">typename</span> Tag2<span class="special">&gt;</span> <a class="link" href="classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4.html#doxygen.classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4_1ad79f61f609e67ea862203cd588ffe065"><span class="identifier">any</span></a><span class="special">(</span><a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a><span class="special">&lt;</span> <span class="identifier">Concept2</span><span class="special">,</span> <span class="identifier">Tag2</span> <span class="special">&gt;</span> <span class="special">&amp;&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Concept2<span class="special">,</span> <span class="keyword">typename</span> Tag2<span class="special">,</span> <span class="keyword">typename</span> Map<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4.html#doxygen.classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4_1a3061ea20ab7e5bd5fb9b4a90dc424a0d"><span class="identifier">any</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a><span class="special">&lt;</span> <span class="identifier">Concept2</span><span class="special">,</span> <span class="identifier">Tag2</span> <span class="special">&amp;&amp;</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="structboost_1_1type__erasure_1_1static__binding.html" title="Struct template static_binding">static_binding</a><span class="special">&lt;</span> <span class="identifier">Map</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Concept2<span class="special">,</span> <span class="keyword">typename</span> Tag2<span class="special">,</span> <span class="keyword">typename</span> Map<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4.html#doxygen.classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4_1a2b7126cc07d47d58d1c7163fd3d93cfe"><span class="identifier">any</span></a><span class="special">(</span><a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a><span class="special">&lt;</span> <span class="identifier">Concept2</span><span class="special">,</span> <span class="identifier">Tag2</span> <span class="special">&gt;</span> <span class="special">&amp;&amp;</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="structboost_1_1type__erasure_1_1static__binding.html" title="Struct template static_binding">static_binding</a><span class="special">&lt;</span> <span class="identifier">Map</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Concept2<span class="special">,</span> <span class="keyword">typename</span> Tag2<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4.html#doxygen.classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4_1aa1dced85d1fa081ce0ecacf22947d803"><span class="identifier">any</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a><span class="special">&lt;</span> <span class="identifier">Concept2</span><span class="special">,</span> <span class="identifier">Tag2</span> <span class="special">&amp;&amp;</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="classboost_1_1type__erasure_1_1binding.html" title="Class template binding">binding</a><span class="special">&lt;</span> <span class="identifier">Concept</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Concept2<span class="special">,</span> <span class="keyword">typename</span> Tag2<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4.html#doxygen.classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4_1aff779daf4c93a70ef12726894e299b2e"><span class="identifier">any</span></a><span class="special">(</span><a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a><span class="special">&lt;</span> <span class="identifier">Concept2</span><span class="special">,</span> <span class="identifier">Tag2</span> <span class="special">&gt;</span> <span class="special">&amp;&amp;</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="classboost_1_1type__erasure_1_1binding.html" title="Class template binding">binding</a><span class="special">&lt;</span> <span class="identifier">Concept</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> U<span class="special">&gt;</span> <a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4.html#doxygen.classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4_1af525f3afceb2afb294b3a42cedcbe575"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="identifier">U</span> <span class="special">&amp;&amp;</span><span class="special">)</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.39.13.2.6.4"></a><h2>Description</h2>
<div class="refsect2">
<a name="id-1.3.39.13.2.6.4.2"></a><h3>
<a name="id-1_3_39_13_1_1_1_4_3-bb"></a><code class="computeroutput">any</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> U<span class="special">&gt;</span> <a name="doxygen.classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4_1a412e871a14c040392805257e3808f26d"></a><span class="identifier">any</span><span class="special">(</span><span class="identifier">U</span> <span class="special">&amp;&amp;</span> arg<span class="special">)</span><span class="special">;</span></pre>
<p>Constructs an <a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a> from a reference.</p>
<p>



</p>
<div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><code class="computeroutput">arg</code></span></p></td>
<td><p>The object to bind the reference to.</p></td>
</tr></tbody>
</table></div></td>
</tr>
<tr>
<td><p><span class="term">Requires:</span></p></td>
<td><p><code class="computeroutput">U</code> is a model of <code class="computeroutput">Concept</code>. </p></td>
</tr>
<tr>
<td><p><span class="term">Requires:</span></p></td>
<td><p><code class="computeroutput">Concept</code> must not refer to any non-deduced placeholder besides <code class="computeroutput">T</code>.</p></td>
</tr>
<tr>
<td><p><span class="term">Throws:</span></p></td>
<td>Nothing. </td>
</tr>
</tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> U<span class="special">,</span> <span class="keyword">typename</span> Map<span class="special">&gt;</span> 
  <a name="doxygen.classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4_1a346cf8190842e22205df5aca3e4f87d7"></a><span class="identifier">any</span><span class="special">(</span><span class="identifier">U</span> <span class="special">&amp;&amp;</span> arg<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="structboost_1_1type__erasure_1_1static__binding.html" title="Struct template static_binding">static_binding</a><span class="special">&lt;</span> <span class="identifier">Map</span> <span class="special">&gt;</span> <span class="special">&amp;</span> binding<span class="special">)</span><span class="special">;</span></pre>
<p>Constructs an <a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a> from a reference.</p>
<p>



</p>
<div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><code class="computeroutput">arg</code></span></p></td>
<td><p>The object to bind the reference to. </p></td>
</tr>
<tr>
<td><p><span class="term"><code class="computeroutput">binding</code></span></p></td>
<td><p>Specifies the actual types that all the placeholders should bind to.</p></td>
</tr>
</tbody>
</table></div></td>
</tr>
<tr>
<td><p><span class="term">Requires:</span></p></td>
<td><p><code class="computeroutput">U</code> is a model of <code class="computeroutput">Concept</code>. </p></td>
</tr>
<tr>
<td><p><span class="term">Requires:</span></p></td>
<td><p><code class="computeroutput">Map</code> is an MPL map with an entry for every non-deduced placeholder referred to by <code class="computeroutput">Concept</code>.</p></td>
</tr>
<tr>
<td><p><span class="term">Throws:</span></p></td>
<td>Nothing. </td>
</tr>
</tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4_1a5af1c993431435d6ef03f45db9c35684"></a><span class="identifier">any</span><span class="special">(</span><a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a><span class="special">&lt;</span> <span class="identifier">Concept</span><span class="special">,</span> <span class="identifier">T</span> <span class="special">&gt;</span> <span class="special">&amp;&amp;</span> other<span class="special">)</span><span class="special">;</span></pre>
<p>Constructs an <a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a> from another rvalue reference.</p>
<p>



</p>
<div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><code class="computeroutput">other</code></span></p></td>
<td>
<p>The reference to copy.</p>
<p>The object to bind the reference to.</p>
</td>
</tr></tbody>
</table></div></td>
</tr>
<tr>
<td><p><span class="term">Throws:</span></p></td>
<td>
<p class="simpara">Nothing. Constructs an <a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a> from another <a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a>.</p>
<p class="simpara">Nothing. </p>
</td>
</tr>
</tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Concept2<span class="special">,</span> <span class="keyword">typename</span> Tag2<span class="special">&gt;</span> 
  <a name="doxygen.classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4_1a5e1192589edf88b31a04a9662a2dfee5"></a><span class="identifier">any</span><span class="special">(</span><a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a><span class="special">&lt;</span> <span class="identifier">Concept2</span><span class="special">,</span> <span class="identifier">Tag2</span> <span class="special">&amp;&amp;</span> <span class="special">&gt;</span> <span class="special">&amp;&amp;</span> other<span class="special">)</span><span class="special">;</span></pre>
<p>Constructs an <a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a> from another rvalue reference.</p>
<p>



</p>
<div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><code class="computeroutput">other</code></span></p></td>
<td><p>The reference to copy.</p></td>
</tr></tbody>
</table></div></td>
</tr>
<tr>
<td><p><span class="term">Requires:</span></p></td>
<td><p><code class="computeroutput">Concept</code> must not refer to any non-deduced placeholder besides <code class="computeroutput">T</code>. </p></td>
</tr>
<tr>
<td><p><span class="term">Requires:</span></p></td>
<td><p>After substituting <code class="computeroutput">T</code> for <code class="computeroutput">Tag2</code>, the requirements of <code class="computeroutput">Concept2</code> must be a superset of the requirements of <code class="computeroutput">Concept</code>.</p></td>
</tr>
<tr>
<td><p><span class="term">Throws:</span></p></td>
<td>std::bad_alloc </td>
</tr>
</tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Concept2<span class="special">,</span> <span class="keyword">typename</span> Tag2<span class="special">&gt;</span> <a name="doxygen.classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4_1ad79f61f609e67ea862203cd588ffe065"></a><span class="identifier">any</span><span class="special">(</span><a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a><span class="special">&lt;</span> <span class="identifier">Concept2</span><span class="special">,</span> <span class="identifier">Tag2</span> <span class="special">&gt;</span> <span class="special">&amp;&amp;</span> other<span class="special">)</span><span class="special">;</span></pre>
<p>Constructs an <a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a> from another <a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a>.</p>
<p>



</p>
<div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><code class="computeroutput">other</code></span></p></td>
<td><p>The object to bind the reference to.</p></td>
</tr></tbody>
</table></div></td>
</tr>
<tr>
<td><p><span class="term">Requires:</span></p></td>
<td><p><code class="computeroutput">Concept</code> must not refer to any non-deduced placeholder besides <code class="computeroutput">T</code>. </p></td>
</tr>
<tr>
<td><p><span class="term">Requires:</span></p></td>
<td><p>After substituting <code class="computeroutput">T</code> for <code class="computeroutput">Tag2</code>, the requirements of <code class="computeroutput">Concept2</code> must be a superset of the requirements of <code class="computeroutput">Concept</code>.</p></td>
</tr>
<tr>
<td><p><span class="term">Throws:</span></p></td>
<td>std::bad_alloc </td>
</tr>
</tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Concept2<span class="special">,</span> <span class="keyword">typename</span> Tag2<span class="special">,</span> <span class="keyword">typename</span> Map<span class="special">&gt;</span> 
  <a name="doxygen.classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4_1a3061ea20ab7e5bd5fb9b4a90dc424a0d"></a><span class="identifier">any</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a><span class="special">&lt;</span> <span class="identifier">Concept2</span><span class="special">,</span> <span class="identifier">Tag2</span> <span class="special">&amp;&amp;</span> <span class="special">&gt;</span> <span class="special">&amp;</span> other<span class="special">,</span> 
      <span class="keyword">const</span> <a class="link" href="structboost_1_1type__erasure_1_1static__binding.html" title="Struct template static_binding">static_binding</a><span class="special">&lt;</span> <span class="identifier">Map</span> <span class="special">&gt;</span> <span class="special">&amp;</span> binding<span class="special">)</span><span class="special">;</span></pre>
<p>Constructs an <a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a> from another reference.</p>
<p>



</p>
<div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><code class="computeroutput">other</code></span></p></td>
<td><p>The reference to copy. </p></td>
</tr>
<tr>
<td><p><span class="term"><code class="computeroutput">binding</code></span></p></td>
<td><p>Specifies the mapping between the two concepts.</p></td>
</tr>
</tbody>
</table></div></td>
</tr>
<tr>
<td><p><span class="term">Requires:</span></p></td>
<td><p><code class="computeroutput">Map</code> must be an MPL map with keys for all the non-deduced placeholders used by <code class="computeroutput">Concept</code> and values for the corresponding placeholders in <code class="computeroutput">Concept2</code>. </p></td>
</tr>
<tr>
<td><p><span class="term">Requires:</span></p></td>
<td><p>After substituting placeholders according to <code class="computeroutput">Map</code>, the requirements of <code class="computeroutput">Concept2</code> must be a superset of the requirements of <code class="computeroutput">Concept</code>.</p></td>
</tr>
<tr>
<td><p><span class="term">Throws:</span></p></td>
<td>std::bad_alloc </td>
</tr>
</tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Concept2<span class="special">,</span> <span class="keyword">typename</span> Tag2<span class="special">,</span> <span class="keyword">typename</span> Map<span class="special">&gt;</span> 
  <a name="doxygen.classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4_1a2b7126cc07d47d58d1c7163fd3d93cfe"></a><span class="identifier">any</span><span class="special">(</span><a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a><span class="special">&lt;</span> <span class="identifier">Concept2</span><span class="special">,</span> <span class="identifier">Tag2</span> <span class="special">&gt;</span> <span class="special">&amp;&amp;</span> other<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="structboost_1_1type__erasure_1_1static__binding.html" title="Struct template static_binding">static_binding</a><span class="special">&lt;</span> <span class="identifier">Map</span> <span class="special">&gt;</span> <span class="special">&amp;</span> binding<span class="special">)</span><span class="special">;</span></pre>
<p>Constructs an <a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a> from another <a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a>.</p>
<p>



</p>
<div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><code class="computeroutput">other</code></span></p></td>
<td><p>The object to bind the reference to. </p></td>
</tr>
<tr>
<td><p><span class="term"><code class="computeroutput">binding</code></span></p></td>
<td><p>Specifies the mapping between the two concepts.</p></td>
</tr>
</tbody>
</table></div></td>
</tr>
<tr>
<td><p><span class="term">Requires:</span></p></td>
<td><p><code class="computeroutput">Map</code> must be an MPL map with keys for all the non-deduced placeholders used by <code class="computeroutput">Concept</code> and values for the corresponding placeholders in <code class="computeroutput">Concept2</code>. </p></td>
</tr>
<tr>
<td><p><span class="term">Requires:</span></p></td>
<td><p>After substituting placeholders according to <code class="computeroutput">Map</code>, the requirements of <code class="computeroutput">Concept2</code> must be a superset of the requirements of <code class="computeroutput">Concept</code>.</p></td>
</tr>
<tr>
<td><p><span class="term">Throws:</span></p></td>
<td>std::bad_alloc </td>
</tr>
</tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Concept2<span class="special">,</span> <span class="keyword">typename</span> Tag2<span class="special">&gt;</span> 
  <a name="doxygen.classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4_1aa1dced85d1fa081ce0ecacf22947d803"></a><span class="identifier">any</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a><span class="special">&lt;</span> <span class="identifier">Concept2</span><span class="special">,</span> <span class="identifier">Tag2</span> <span class="special">&amp;&amp;</span> <span class="special">&gt;</span> <span class="special">&amp;</span> other<span class="special">,</span> 
      <span class="keyword">const</span> <a class="link" href="classboost_1_1type__erasure_1_1binding.html" title="Class template binding">binding</a><span class="special">&lt;</span> <span class="identifier">Concept</span> <span class="special">&gt;</span> <span class="special">&amp;</span> binding<span class="special">)</span><span class="special">;</span></pre>
<p>Constructs an <a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a> from another rvalue reference.</p>
<p>



</p>
<div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><code class="computeroutput">other</code></span></p></td>
<td><p>The reference to copy. </p></td>
</tr>
<tr>
<td><p><span class="term"><code class="computeroutput">binding</code></span></p></td>
<td><p>Specifies the bindings of placeholders to actual types.</p></td>
</tr>
</tbody>
</table></div></td>
</tr>
<tr>
<td><p><span class="term">Requires:</span></p></td>
<td><p>The type stored in <code class="computeroutput">other</code> must match the type expected by <code class="computeroutput">binding</code>.</p></td>
</tr>
<tr>
<td><p><span class="term">Postconditions:</span></p></td>
<td><p>binding_of(*this) == <code class="computeroutput">binding</code> </p></td>
</tr>
<tr>
<td><p><span class="term">Throws:</span></p></td>
<td>Nothing. </td>
</tr>
</tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Concept2<span class="special">,</span> <span class="keyword">typename</span> Tag2<span class="special">&gt;</span> 
  <a name="doxygen.classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4_1aff779daf4c93a70ef12726894e299b2e"></a><span class="identifier">any</span><span class="special">(</span><a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a><span class="special">&lt;</span> <span class="identifier">Concept2</span><span class="special">,</span> <span class="identifier">Tag2</span> <span class="special">&gt;</span> <span class="special">&amp;&amp;</span> other<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="classboost_1_1type__erasure_1_1binding.html" title="Class template binding">binding</a><span class="special">&lt;</span> <span class="identifier">Concept</span> <span class="special">&gt;</span> <span class="special">&amp;</span> binding<span class="special">)</span><span class="special">;</span></pre>
<p>Constructs an <a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a> from another <a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a>.</p>
<p>



</p>
<div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><code class="computeroutput">other</code></span></p></td>
<td><p>The object to bind the reference to. </p></td>
</tr>
<tr>
<td><p><span class="term"><code class="computeroutput">binding</code></span></p></td>
<td><p>Specifies the bindings of placeholders to actual types.</p></td>
</tr>
</tbody>
</table></div></td>
</tr>
<tr>
<td><p><span class="term">Requires:</span></p></td>
<td><p>The type stored in <code class="computeroutput">other</code> must match the type expected by <code class="computeroutput">binding</code>.</p></td>
</tr>
<tr>
<td><p><span class="term">Postconditions:</span></p></td>
<td><p>binding_of(*this) == <code class="computeroutput">binding</code> </p></td>
</tr>
<tr>
<td><p><span class="term">Throws:</span></p></td>
<td>Nothing. </td>
</tr>
</tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> U<span class="special">&gt;</span> <a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a> <span class="special">&amp;</span> <a name="doxygen.classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_6_01_4_1af525f3afceb2afb294b3a42cedcbe575"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="identifier">U</span> <span class="special">&amp;&amp;</span> other<span class="special">)</span><span class="special">;</span></pre>
<p>Assigns to an <a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a>.</p>
<p>If an appropriate overload of <a class="link" href="structboost_1_1type__erasure_1_1assignable.html" title="Struct template assignable">assignable</a> is not available and <a class="link" href="structboost_1_1type__erasure_1_1relaxed.html" title="Struct relaxed">relaxed</a> is in <code class="computeroutput">Concept</code>, falls back on constructing from <code class="computeroutput">other</code>.</p>
<p>
</p>
<div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term">Throws:</span></p></td>
<td>Whatever the assignment operator of the contained type throws. When falling back on construction, can only throw <code class="computeroutput">std::bad_alloc</code> if <code class="computeroutput">U</code> is an <a class="link" href="classboost_1_1type__erasure_1_1any.html" title="Class template any">any</a> that uses a different <code class="computeroutput">Concept</code>. In this case assignment provides the strong exception guarantee. When calling the assignment operator of the contained type, the exception guarantee is whatever the contained type provides. </td>
</tr></tbody>
</table></div>
</li>
</ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2011-2013 Steven Watanabe<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="classboost_1_1type__erasure_1_1any_3_01Concept_00_01T_01_6_01_4.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../boost_typeerasure/reference.html#doxygen.any_8hpp"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="any__cast_8hpp_1af5fce4e0a865de41e533821e363e548f.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
